import request from '../utils/request'
//发送验证码
export const getCode = (data) => {
    return request.post('/get/code',data)
}

// 用户注册
export const userAuthentication = (data) => {
    return request.post('/user/authentication',data)
}
// 用户登陆
export const login = (data) => {
    return request.post('/login',data)
}
//权限管理列表
export const authAdmin = (params) => {
    return request.get('/auth/admin',{params})
}
//用户菜单权限
export const menuPermissions = (params) => {
    return request.get('/menu/permissions',{params})
}